home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 5 / MacMania 5.toast / / Tools&Utilities / Plotfoil 3.2 / plotfoil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-19  |  2.1 KB  |  81 lines  |  [TEXT/MMCC]

  1. /*
  2.  * Copyright 1992 Shamim P. Mohamed
  3.  *
  4.  * This program is free software; you can redistribute it and/or modify
  5.  * it under the terms of the GNU General Public License as published by
  6.  * the Free Software Foundation; either version 2 of the License, or
  7.  * (at your option) any later version.
  8.  *
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  *
  18.  * Author:
  19.  * shamim@math.isu.edu
  20.  * Shamim Mohamed
  21.  * Dept. of Mathematics
  22.  * Idaho State University
  23.  *
  24.  */
  25.  
  26. #include <stdio.h>
  27. #include <console.h>
  28. #include <stdlib.h>
  29. #include <string.h>
  30. #include <ctype.h>
  31. #include <math.h>
  32.  
  33. #include "foil_lib.h"
  34. #include "lib.h"
  35.  
  36. #define MAX_SPARS  10        /* max number of spars for airfoil */
  37.  
  38. /*
  39.  * Page parameters, for plots that take up more than one sheet. Remember,
  40.  * the page is considered to be in landscape orientation, so the width is
  41.  * greater than the height. This is for US letter (8.5" x 11"); European
  42.  * users using A4 may wish to change these numbers.
  43.  *
  44.  * The margin is space to leave on all sides; the ljet4 driver for
  45.  * ghostscript, for instance, puts the page too far to the left and down.
  46.  * Depending on your printer this may need adjustment.
  47.  */
  48. #define MARGIN 20
  49. #define PAGEWIDTH (750-2*MARGIN)
  50. #define PAGEHEIGHT (600-2*MARGIN)
  51.  
  52. /* This is the actual size of the page in points: */
  53. #define PS_WIDTH  612
  54. #define PS_HEIGHT 792
  55. /*
  56.  * output scaling etc. 
  57.  */
  58. #define SCALE      10000        /* size of the field (output)        */
  59. #define RADIUS     10           /* radius of circles denoting points */
  60.  
  61. #define PS 12
  62. #define VS 13.4
  63. #define TITLE_SIZE 30
  64. #define CROSS_SIZE 20
  65.  
  66. /*
  67.  * type definitions
  68.  */
  69.  
  70. typedef struct {
  71.    float raw_value, scale, pts;
  72.    char *units;
  73. } value_t;
  74.  
  75. typedef struct {
  76.    float offset;
  77.    value_t thick;
  78. } spar_t;
  79.  
  80. #include "COPYRIGHT"
  81.